package com.xiaoq.shop.entity;

import com.xiaoq.MongoEntity;
import org.mongodb.morphia.annotations.Entity;

import javax.validation.constraints.NotNull;

/**
 * Created by qudongxin520 on 2016/11/15.
 */
@Entity(value = "like_collection",noClassnameStored = true)
public class LikeEntity extends MongoEntity {
    private Long likerId;
    private String userPhotoUrl;
    @NotNull
    private String likedId;
    @NotNull
    private Integer type; //1 小店  2 商品
    
	public Long getLikerId() {
		return likerId;
	}
	public void setLikerId(Long likerId) {
		this.likerId = likerId;
	}
	public String getUserPhotoUrl() {
		return userPhotoUrl;
	}
	public void setUserPhotoUrl(String userPhotoUrl) {
		this.userPhotoUrl = userPhotoUrl;
	}
	public String getLikedId() {
		return likedId;
	}
	public void setLikedId(String likedId) {
		this.likedId = likedId;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
    
    
}
